package com.ymatou.iapi.userservice.testcase;

import java.security.interfaces.RSAPublicKey;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.common.lang.CipherUtil;
import com.ymatou.iapi.userregister.parameter.SellerRegisterBean;
import com.ymatou.iapi.userregister.parameter.UserRegisterInfoRequestDtoBean;
import com.ymatou.iapi.userregister.service.SellerRegisterCall;
import com.ymatou.iapi.userregister.service.UserRegisterInfoRequestDtoCall;
import com.ymatou.iapi.userservice.parameter.AnalyseMobileContactsBean;
import com.ymatou.iapi.userservice.parameter.MobileContacts;
import com.ymatou.iapi.userservice.parameter.Udata;
import com.ymatou.iapi.userservice.service.AnalyseMobileContactsCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymt.core.tool.RSAUtils;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.JUserCallService;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.TestDataManager;

/**
 * 分析用户通讯录 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_AnalyseMobileContacts {
	private static AnalyseMobileContactsBean analysemobilecontactsBean;
	private static AnalyseMobileContactsCall analysemobilecontactsCall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("分析用户通讯录");
	}

	@Before
	public void caseUp() {
		analysemobilecontactsBean = new AnalyseMobileContactsBean();
		analysemobilecontactsCall = new AnalyseMobileContactsCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(analysemobilecontactsCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_001() {
		Logger.start(true, "分析用户通讯录,成功,有好友在码头注册");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("1", analysemobilecontactsCall.getString("Data"), "验证数据");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_002() {
		Logger.start(true, "分析用户通讯录,成功,有多个好友在码头注册");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);
			UserRegisterInfoRequestDtoBean regbean3 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc3 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean3);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);

			Udata u2 = new Udata();
			u2.setName(TestDataManager.getChineseName());
			List<String> phoneList2 = new ArrayList<>();
			phoneList2.add(regbean3.getLoginMobile());
			u2.setPhoneList(phoneList2);
			udata.add(u2);

			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("2", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_003() {
		Logger.start(true, "分析用户通讯录,成功,有1个好友多个手机");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);
			UserRegisterInfoRequestDtoBean regbean3 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc3 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean3);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			phoneList.add(regbean3.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("2", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_004() {
		Logger.start(true, "分析用户通讯录,没有好友在码头注册过");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			// UserRegisterInfoRequestDtoBean regbean2 =
			// JUserCallService.initUserRegisterInfoRequestDtoBean();
			// UserRegisterInfoRequestDtoCall urrc2 =
			// JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(JUserCallService.initUserRegisterInfoRequestDtoBean().getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("0", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_005() {
		Logger.start(true, "分析用户通讯录,有好友手机号是商家注册");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			regbean2.setRegisterType(1);
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("0", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_006() {
		Logger.start(true, "分析用户通讯录,有好友手机号是非码头体系-直播微店");
		try {
			SellerRegisterBean regbean = JUserCallService.initSellerReg();
			SellerRegisterCall urrc = JUserCallService.SellerRegisterCall(regbean);

			

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);
			Integer uid = urrc2.getUserid();
			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("0", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_007() {
		Logger.start(true, "分析用户通讯录,报文不加密失败");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			// byte[] rsabytes =
			// RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(),
			// (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup
			// .getData("USER_PUBLIC_KEY")));
			// String mobileContacts =
			// Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(FormatUtil.beanToGSONString(mc));
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("400", analysemobilecontactsCall.getString("Code"), "验证成功");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_008() {
		Logger.start(true, "分析用户通讯录,不输入手机号无数据");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			// UserRegisterInfoRequestDtoBean regbean2 =
			// JUserCallService.initUserRegisterInfoRequestDtoBean();
			// UserRegisterInfoRequestDtoCall urrc2 =
			// JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			// phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("0", analysemobilecontactsCall.getString("Data"), "验证数据");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_009() {
		Logger.start(true, "分析用户通讯录,有好友账号非正常状态-注销,无数据");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);
			Integer uid2 = urrc2.getUserid();
			JUserCallService.CloseAccount(uid2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("0", analysemobilecontactsCall.getString("Data"), "验证数据");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_010() {
		Logger.start(true, "分析用户通讯录,成功,混合数据");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);

			Udata u2 = new Udata();
			u2.setName(TestDataManager.getChineseName());
			List<String> phoneList2 = new ArrayList<>();
			phoneList2.add(JUserCallService.initUserRegisterInfoRequestDtoBean().getLoginMobile());
			u2.setPhoneList(phoneList2);
			udata.add(u2);

			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("1", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P2.class })
	@TestCase
	public void Tc_AnalyseMobileContacts_011() {
		Logger.start(true, "分析用户通讯录,成功,混合数据100个用户");
		try {
			UserRegisterInfoRequestDtoBean regbean = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc = JUserCallService.UserRegisterInfoRequestDtoCall(regbean);

			Integer uid = urrc.getUserid();

			UserRegisterInfoRequestDtoBean regbean2 = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall urrc2 = JUserCallService.UserRegisterInfoRequestDtoCall(regbean2);

			List<Udata> udata = new ArrayList<>();
			Udata u = new Udata();
			u.setName(TestDataManager.getChineseName());
			List<String> phoneList = new ArrayList<>();
			phoneList.add(regbean2.getLoginMobile());
			u.setPhoneList(phoneList);
			udata.add(u);
			for (int i = 0; i < 99; i++) {
				Udata u2 = new Udata();
				u2.setName(TestDataManager.getChineseName());
				List<String> phoneList2 = new ArrayList<>();
				phoneList2.add(JUserCallService.initUserRegisterInfoRequestDtoBean().getLoginMobile());
				u2.setPhoneList(phoneList2);
				udata.add(u2);
			}
			MobileContacts mc = new MobileContacts();
			mc.setUdata(udata);
			Logger.debug("udata:" + FormatUtil.beanToGSONString(mc));
			byte[] rsabytes = RSAUtils.encryptByPublicKey(FormatUtil.beanToGSONString(mc).getBytes(), (RSAPublicKey) RSAUtils.loadPublicKey(EnvSetup.getData("USER_PUBLIC_KEY")));
			String mobileContacts = Base64.getEncoder().encodeToString(rsabytes);

			analysemobilecontactsBean.setUserId(uid);
			analysemobilecontactsBean.setMobileContacts(mobileContacts);
			analysemobilecontactsCall.setData(analysemobilecontactsBean);
			analysemobilecontactsCall.callService();
			Logger.verifyEquals("200", analysemobilecontactsCall.getString("Code"), "验证成功");
			Logger.verifyEquals("1", analysemobilecontactsCall.getString("Data"), "验证数据");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}